import request from '@/utils/request'

// 查询社区圈子列表
export function listCircleDiscussions(query) {
  return request({
    url: '/social/CircleDiscussions/list',
    method: 'get',
    params: query
  })
}

// 查询社区圈子详细
export function getCircleDiscussions(discussionId) {
  return request({
    url: '/social/CircleDiscussions/' + discussionId,
    method: 'get'
  })
}

// 新增社区圈子
export function addCircleDiscussions(data) {
  return request({
    url: '/social/CircleDiscussions',
    method: 'post',
    data: data
  })
}

// 修改社区圈子
export function updateCircleDiscussions(data) {
  return request({
    url: '/social/CircleDiscussions',
    method: 'put',
    data: data
  })
}

// 删除社区圈子
export function delCircleDiscussions(discussionId) {
  return request({
    url: '/social/CircleDiscussions/' + discussionId,
    method: 'delete'
  })
}
